<?php


class Game
{

    /*****************************
    参数
     *****************************/

    /*
        分享房间链接
    */
    const Share_RoomUrl			= "";


    const PaymentType_AA		= 1;	//1AA
    const PaymentType_Creator	= 2;	//1房主

    const Game_Type	= 8;	//游戏类型 ：1炸金花  2斗地主  3三公  4德州  5六人斗牛 6广东麻将 8二八杠   9九人斗牛，

    /*	房间用户uid	*/
    const RoomUser_UID			= "[roomid]:[accountid]";


    /*	开局默认分数	*/
    const Default_Score				= 5;
    const Default_SpendTicketCount	= 1;

    /*	游戏每轮局数 */
    //const GameNum_EachRound		= 2;


    /*	用户状态	*/
    const AccountStatus_Initial		= 0;	//首次进房初始状态
    const AccountStatus_Notready	= 1;	//未准备
    const AccountStatus_Ready		= 2;	//已准备
    const AccountStatus_Choose		= 3;	//选择抢庄
    const AccountStatus_Notgrab		= 4;	//不抢庄
    const AccountStatus_Grab		= 5;	//抢庄

    const AccountStatus_Shuffle  	= 6;   //洗牌
    const AccountStatus_Bet			= 7;	//下注或切牌
    const AccountStatus_Deal		= 8;  //发牌

    const AccountStatus_Notshow		= 9;	//未摊牌
    const AccountStatus_Show		= 10;	//摊牌


    /*	房间状态	*/
    const RoomStatus_Waiting		= 1;	//等待中
    const RoomStatus_Playing		= 2;	//游戏中
    const RoomStatus_Closed			= 3;	//已关闭

    /*	操作超时时间	*/
    const LimitTime_StartGame		= 30;	//第一局开局时限
    const LimitTime_Ready			= 9;	//每局之间时限
    const LimitTime_Grab			= 10;	//抢庄时限

    const LimitTime_Shuffle			= 0;	//洗牌时限

    const LimitTime_Deal			= 5;	//发牌时限

    const LimitTime_Betting			= 10;	//下注时限
    const LimitTime_Show			= 15;	//摊牌时限

    const LimitTime_Pause			= 8;	//中场时限
    const LimitTime_ClearRoom		= 300;	//清理房间时间


    /*	倍率	*/
    const Cardtype_Boom				= 6;	//炸弹
    const Cardtype_Five				= 5;	//五花牛
    const Cardtype_Zero				= 3;	//牛牛
    const Cardtype_Double			= 2;	//7到9点
    const Cardtype_Default			= 1;	//1到6点

    /*	游戏阶段	*/
    const Circle_Grab				= 1;	//叫庄

    const Circle_Shuffle    = 2;      //洗牌

    const Circle_Bet				= 3;	//下注
    const Circle_Deal				= 4;	//发牌
    const Circle_Show				= 5;	//摊牌

    const Circle_Pause			= 6;  //中场休息

    const Circle_Bet2				= 7;	//下注
    const Circle_Deal2				= 8;	//发牌
    const Circle_Show2				= 9;	//摊牌

    /*	模式	*/
    const BankerMode_FreeGrab			= 1;	//自由抢庄
    const BankerMode_FixedBanker		= 2;	//固定庄家

}


/* End of file constants.php */
/* Location: ./application/config/constants.php */
